package com.go.where.manager.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.go.where.manager.dao.ActivityDao;
import com.go.where.manager.pojo.ActivityInfo;

@Repository("activityDao")
public class ActivityDaoImpl extends BaseDaoImpl<ActivityInfo> implements
		ActivityDao {

	@Override
	protected String getNameSpace() {
		return "mybatis.xml.ActivityMapper";
	}

	@Override
	public List<ActivityInfo> queryAll(ActivityInfo mroleId) {
		return getSqlSession()
				.selectList(getNameSpace() + ".queryAll", mroleId);
	}

	@Override
	public int updateByClassId(ActivityInfo classIdInfo) {
		return getSqlSession().update(getNameSpace() + ".updateByClassId",
				classIdInfo);
	}

}
